package com.JavaWk2_6;

public class Student {
    private String s_NO, s_Name, s_Sex;
    private int s_Age;

    public Student(){}

    public Student(String n, String na, String s, int a){
        this.s_Age = a;
        this.s_Name = na;
        this.s_NO = n;
        this.s_Sex = s;
    }

    public String showNO(){
        return this.s_NO;
    }
    public String showName(){
        return this.s_Name;
    }
    public String showSex(){
        return this.s_Sex;
    }
    public int showAge(){
        return this.s_Age;
    }
    public void modifyAge(int a){
        this.s_Age = a;
    }

    public String to_String(){
        return "学号:" + this.s_NO + " 姓名:" + this.s_Name + " 性别:" + this.s_Sex + " 年龄:" + this.s_Age;
    }
}
